﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Competition.Application.DTO;
using Competition.Domain.Entity;

namespace Competition.Application.Interfaces
{
    public interface IBannerService:IBaseService<Banner>
    {
        Task<int> AddAsync(BannerDto dto);
        Task<BannerDto> FindAsync(int id);
        Task<bool> UpdateAsync(BannerDto dto);
        Task<bool> DeleteAsync(int id);
        Task<bool> UpdateStatusAsync(int id, int status);
        Task<(PageDto pageDto, List<BannerDto> dtos)> FindListAsync(int pageIndex, int pageSize);
    }
}